<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/style.css">
<title>八维贴吧</title>
</head>
<body>
	<!-- 包含header.jsp -->
	<jsp:include page="/WEB-INF/view/common/header.jsp" />

	<!-- ///////////////////////////////自己开发部分中间部分开始/////////////////////////// -->

	<div class="container border-1">
		<div class="row">

			<!-- 个人信息的左侧部分 -->
			<jsp:include page="/WEB-INF/view/my/left.jsp" />

			<!-- 中间部分 -->
			<div class="col10 bg-white" style="padding-left: 50px">


				<form:form modelAttribute="user" id="userForm"
					action="${pageContext.request.contextPath}/my/update/password"
					method="post">
					<table class="table-borderless">
						<tbody>
							<tr>
								<td width="30%"></td>
								<td><span style="color: red"> <form:errors path="*"  cssStyle="color:red"></form:errors>
								</span></td>
							</tr>
							<tr>
								<td align="right">用户名</td>
								<td><form:input path="userName" readonly="true"/></td>
							</tr>
							<tr>
								<td align="right">老密码</td>
								<td><form:password path="oldPassword" /></td>
							</tr>
							
														<tr>
								<td align="right">新密码</td>
								<td><form:password path="password" /></td>
							</tr>
							
							<tr>
								<td align="right">确认密码</td>
								<td><form:password path="repassword" /></td>
							</tr>
							<tr>
								<td></td>
								<td><button class="btn btn-danger">修改密码</button></td>
							</tr>
						</tbody>
					</table>
				</form:form>


			</div>
		</div>
	</div>




	<!-- ///////////////////////////////自己开发部分中间部分开始/////////////////////////// -->

	<!-- jsp包含尾部footer.jsp -->
	<jsp:include page="/WEB-INF/view/common/footer.jsp" />
</body>
</html>